const{login}=require('../db/Data/loginData');
module.exports.login=async function(Info){
  const data = await login(Info)
  if(data._id){
    return{
      message: '登陆成功',
      status: '200',
      token: data._id
    }
  }else{
    return{
      message: '账号不存在或者密码错误',
      status: '0',
    }
  }
}